Python files end in what?
- python
- py
- code
- txt
Comments start with which character?
- #
- '
- !
- "
What is indentation?
- Spaces infront of lines of code
- A well commented file
- Not important
What is wrong with this code?
if x> 10:
print "hi"
- It makes no sense!
- print "hi" must be indented
- "hi" shoudl be cast to a number
- x is smaller than 10
What would the following line of code do?
print hello world
- Display hello world
- display the contents of variables hello and world
- cause an error
What will the following code do?
x = 10
y = 10
print x + y
- Cause an error
- Display the value 20
- display x + y